package com.ph.irp.base.voucher.service;

import java.util.List;

import com.ph.irp.model.PBaseVoucher;

public interface VoucherService {
	
	public List<PBaseVoucher> getVoucherList(PBaseVoucher voucherModel) throws Throwable;
	
	/*
	 * 添加凭证字记录定义
	 */
	public void addVoucher(PBaseVoucher voucherModel) throws Throwable;
	
	/*
	 * 更新凭证字记录
	 */
	public void updateVoucher(PBaseVoucher voucherModel) throws Throwable;
	
	/*
	 * 删除选中记录
	 */
	public int deleteVoucher(Integer voucherId) throws Throwable;
	
	/*
	 * 按照凭证字ID查询
	 */
	public PBaseVoucher getVoucherById(Integer voucherId) throws Throwable;
	
	
	public List<PBaseVoucher> getByName(String voucherName) throws Throwable;
}
